package com.ymt.bpm.service.platform.log;

import com.alibaba.fastjson.JSONObject;
import com.ymt.bpm.model.PSystemlog;


/**
 * Created by Johnny on 2017/3/22.
 */
public interface SysLogService {

    int addLog(PSystemlog log);

    JSONObject get(String tenantId, String logid, String lang, int timezoneOffset);

    int delLog(String tenantId, String logid);

    int purge(String tenantId);

    public JSONObject query(String tenantId,
                            String category,
                            String search,
                            String sort,
                            String order,
                            int offset,
                            int limit,
                            String lang,
                            int timezoneOffset);

    void expLog(String tenantId, String piId, String taskId, String code, String category, String userId, String userName, Exception e);

}
